package com.chen.recruit.domain.dto;

import com.chen.recruit.common.valid.AddGroup;
import com.chen.recruit.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;

@Data
@ApiModel("DeliverResumeDto 投递简历数据传输对象")
public class DeliverResumeDto {

    /**
     * id
     */
    @ApiModelProperty(value = "id", required = true)
    @NotNull(message = "id不能为空", groups = { UpdateGroup.class })
    private Integer id;

    /**
     * 简历id
     */
    @ApiModelProperty(value = "简历id", required = true)
    @NotNull(message = "简历id不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private Integer resumeId;

    /**
     * 招聘岗位id
     */
    @ApiModelProperty(value = "招聘岗位id", required = true)
    @NotNull(message = "招聘岗位id不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private Integer recruitPostId;

    /**
     * 简历投递状态(0投递中 1待查看 2已查看)
     */
    @ApiModelProperty(value = "简历投递状态(0投递中 1待查看 2已查看)", required = true)
    @NotNull(message = "简历投递状态(0投递中 1待查看 2已查看)不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private Integer status;


}
